import { createApp } from "vue";
// import router
import router from '@/router'
import "../src/permission";
import './styles/common.scss'
import App from "./App.vue";
// import ele-icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component);
}
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 国际化
// import i18n from './lang'
// 全局组件
import Component from './components';
// import pinia
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' //引入持久化插件
// 导入全局自定义指令
import directives from '@/directives';
// 全局使用图标
import 'virtual:svg-icons-register';
// 导入pinia
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
import 'uno.css' // 导入unocss
import "../style.css"
app.use(router).use(pinia).use(directives).use(ElementPlus, { locale: zhCn }).use(Component).mount("#app")
